package com.tank.demo01;

import java.io.IOException;
import java.util.Properties;

public class ProperMgr {

	static Properties props = new Properties();
	
	static {
		try {
			props.load(ProperMgr.class.getClassLoader().getResourceAsStream("config.properties"));
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
	
	public static Object get(String key) {
		if (null == props) {
			return null;
		}
		return props.get(key);
	}
}
